<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="xm"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/backnav.css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/admin.css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/adminLogin.css">
<script type="text/javascript">
function doLogin(){
	var loginName = document.getElementById("loginName").value;
	var loginPwd = document.getElementById("loginPwd").value;
	if(loginName=='' || loginPwd==''){
		alert("用户名和密码不能为空");
		return;
	}	
	location.href='<%=request.getContextPath()%>/admin?m=reLogin&loginName='+loginName+"&loginPwd="+loginPwd;
}
</script>
</head>
<body>
 	<div id="top">
 		<jsp:include page="/comm/backTop.jsp"></jsp:include>
 	</div>
    <div id="left">
        <jsp:include page="/comm/backnav.jsp"></jsp:include>
    </div>
    <div id="right">
        <div class="right">
        	<div class="adminInfo">
				
        		<table border="1">
        			<tr>
						<td class="td-th" colspan="2">管理员账号切换</td></tr>
					<tr>
						<td class="td-left">登录账号：</td>
						<td><input id="loginName"></td>	
					</tr>
					<tr>
						<td class="td-left">登录密码：</td>
						<td><input type="password" id="loginPwd"></td>	
					</tr>
					<tr>
						<td class="td-left">核对密码：</td>
						<td><input type="password" id="loginPwd1"></td>	
					</tr>
					<tr>
						<td></td>
						<td> <button class="loginButton" title="登录按钮" onclick="doLogin()">登录</button></td>	
					</tr>
 			 	</table>
			</div>
        </div>
    </div>
</body>
</html>